home *** CD-ROM | disk | FTP | other *** search
/ Dr. Windows 3 / dr win3.zip / dr win3 / VISUALBA / TG_DEMO.ZIP / TGDEMO.TXT < prev    next >
Text File  |  1993-08-04  |  14KB  |  193 lines

  1. !!! This file is used by TGDEMO.MAK ... you don't need to read it. !!!
  2.  
  3. # Intro
  4.  
  5. Welcome to the TrueGrid demonstration package.
  6.  
  7. You are in the NAVIGATOR, which allows you to read about each TrueGrid demo, then try it yourself to see how it works.  Use the PgDn key or scrollbar to read the rest of this introduction.  You can also resize the NAVIGATOR window so you can see more or less text.
  8. -----
  9. TrueGrid is a bound database browser grid for Visual Basic 3.0 Data Access.  It is remarkably easy to use, quite capable, and priced sensibly.  Our goal in designing TrueGrid was to provide you with high performance, high productivity, and good value.  First, this demo program will be described.  At the end of this intro page, you can find out how to order TrueGrid if you like what you see here.
  10. -----
  11. Use the scroll bar at the upper left to move from this introduction to the description of each demo.  If you want to run the demo, press the "Try It" button at the upper right.  The navigator will then describe the demo's operation.
  12.  
  13. You can stop running this program at any time to peruse the source code for each demo.  Each demo is numbered.  For each numbered demo, there is a separate Visual Basic form whose name is "TGDEMOn.FRM" where "n" is the number of the demo.  This makes it easy to view the demo source code to see how it works.
  14.  
  15. This demo will only work in Visual Basic design mode, since the demo version of TrueGrid won't work in compiled applications.
  16.  
  17. If you like TrueGrid, and want one of your very own, please order one from Apex Software at 1-800-858-APEX.  TrueGrid is only $69 (US) and comes with a 30-day money-back guarantee.  Our technical support is excellent, and we listen carefully to your comments and suggestions.
  18. # Demo #1
  19. This demo shows how simple it is to use TrueGrid using all of the default settings.  A form is displayed which shows the default TrueGrid, browsing a small customer database.
  20.  
  21. This demo contains no code whatsoever.
  22. # Demo #1X
  23. This demo shows how simple it is to use TrueGrid using all of the default settings.
  24.  
  25. READ THIS FIRST, then click on the "Demo 1 - Simple TrueGrid" title to bring the demonstration form to the front so you can try it.
  26.  
  27. To create this demo, we did the following:
  28.  
  29. 1.  Put a data control on the form, and set it to the customer.dbf database.
  30. 2.  Dropped a TrueGrid on the form and set the DataSource property.
  31.  
  32. >> Observe:
  33.  
  34. This demo contains no code.
  35.  
  36. You can edit data, move from record to record, and rearrange or resize columns using the mouse.
  37.  
  38. To edit, click on a cell to make it current, then click again to enter cell editing mode.  You can also just begin typing and TrueGrid will enter edit mode automatically.  When done, press the ENTER key.  Note that the updated text will appear RED until you move the record pointer using the data control or by clicking on another row in the grid.  That's when the actual update occurs.
  39.  
  40. Notice that the grid will "listen" to anything you do with the data control.  Move the record pointer to the first record, the last record, or move forward or backward by one record at a time.  The grid automatically senses what you do and there is absolutely no coding necessary.
  41. # Demo #2
  42. This demo shows how well TrueGrid and other bound controls work together.
  43.  
  44. A grid, combined with three Visual Basic Text controls work togther to browse and update data.  The grid properties have also been set to show the enhanced 3D appearance.
  45.  
  46. This demo contains no code whatsoever.
  47. # Demo #2X
  48. This demo shows how well TrueGrid and other bound controls work together.
  49.  
  50. READ THIS FIRST, then click on the "Demo 2 - Multiple Controls" title to bring the demonstration form to the front so you can try it.
  51.  
  52. >> Observe:
  53.  
  54. This demo contains no code.
  55.  
  56. As you move the grid pointer by clicking on a cell, the text boxes automatically show the current row.  If you edit data in the grid, then change the row number, the text boxes will show the edited data (when you make that row current again).  Similarly, if you change data in a text box, then move the pointer, the grid automatically shows the updated data in the old row.
  57.  
  58. >> To create this demo, we did the following:
  59.  
  60. 1.  Put a data control on the form, and set it to the customer.dbf database.
  61. 2.  Dropped a TrueGrid on the form and set the DataSource property.
  62. 3.  Used the TrueGrid design-time layout editor to pre-configure the column layout and sizes for this demo.
  63. 4.  Put three text boxes, linked to individual database fields via their DataSource and DataField properties.
  64. 5.  Set TrueGrid properties HorzLines, HorzColor, VertLines, VertColor, BackColor and MarqueeStyle to enhance the grid appearance.
  65. # Demo #3
  66. This demo shows how database actions taken by program code are automatically sensed by TrueGrid.
  67.  
  68. This is an enhanced version of Demo2 which contains buttons for Update, AddNew, Delete.  It also contains buttons for First, Next, Previous, and Last.  Although these duplicate the function of the data control, they demonstrate how methods like MoveFirst can be used to cause grid movement.
  69. # Demo #3X
  70. This demo shows how database actions taken by program code are automatically sensed by TrueGrid.
  71.  
  72. READ THIS FIRST, then click on the "Demo 3 - Code Interaction" title to bring the demonstration form to the front so you can try it.
  73.  
  74. >> Observe:
  75.  
  76. This demo works like Demo2.  You can move the grid pointer as well as update data in the grid or text controls.
  77.  
  78. The Update button will force an immediate update.  For example, if you change a cell in the grid, but don't move to a new row, the edited cell changes color to let you know that the data was changed.  If you click Update, it forces the grid (and other controls) to write their data to the database.
  79.  
  80. The Delete button deletes the record you are currently pointing to (don't delete too many ... this file is used by other demos).
  81.  
  82. The AddNew button will create a new, empty record at the bottom of the grid.
  83.  
  84. >> To create this demo, we did the following:
  85.  
  86. 1.  Put a data control on the form, and set it to the customer.dbf database.
  87. 2.  Dropped a TrueGrid on the form and set the DataSource property.
  88. 3.  Used the TrueGrid design-time layout editor to pre-configure the column layout and sizes for this demo.
  89. 4.  Put three text boxes, linked to individual database fields via their DataSource and DataField properties.
  90. 5.  Created seven buttons and put the proper code in each (1-3 lines per button).
  91. 6.  Set TrueGrid properties HorzLines, HorzColor, VertLines, VertColor, BackColor and MarqueeStyle to enhance the grid appearance.
  92. # Demo #4
  93. This demo shows how multiple records can be selected and highlighted using TrueGrid's BookmarkList feature.  Records can be selected manually, or multiple records can be automatically selected by providing an expression.
  94.  
  95. This demonstration is somewhat more complicated and shows quite a few features.
  96. # Demo #4X
  97. This demo shows how multiple records can be selected and highlighted using TrueGrid's BookmarkList feature.
  98.  
  99. READ THIS FIRST, then click on the "Demo 4 - Multiple Selection" title to bring the demonstration form to the front so you can try it.
  100.  
  101. >> Observe:
  102.  
  103. This demo highlights several features, but mainly serves to demonstrate how multiple row selection can be performed.  Here are some things you may want to try:
  104.  
  105. 1.  Move the mouse to the leftmost edge of the grid ... a checkmark appears.  You can click to select a row, or click to deselect one which is already selected.
  106.  
  107. 2.  The horizontal scroll bar allows you to move from one selected row to another.  Select a few rows throughtout the database, then move from one to another using the scroll bar.
  108.  
  109. 3.  The "Clear All" button will deselect all of the selected rows.
  110.  
  111. 4.  At the bottom, the power of the grid's selection capability is illustrated by allowing an expression to be used to add items to the selection.  Choose one of the expressions from the combo box (or type your own if you wish), then click "Execute" to select each of the rows which matches the criteria.  The "Execute" button ADDS records to the sele